package org.example.command;

import org.example.editor.Editor;

public class LoadFileCommand implements Command {
    private Editor editor;
    private String filePath;
    public LoadFileCommand(Editor editor,String filePath) {
        this.editor = editor;
        this.filePath = filePath;
    }
    @Override
    public void excute() {
        editor.loadFile(filePath);
    }
}
